home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / pathconf.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. PATHCONF(3)         MINTLIB LIBRARY FUNCTIONS         PATHCONF(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        pathconf - query file system related limits and options
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <unistd.h>
  12.  
  13.        long pathconf(const char *path, int name);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        pathconf  provides  a method for the application to deter-
  17.        mine the current value of a configurable limit  or  option
  18.        that  is  associated  with  the file-system containing the
  19.        file or directory named in path.
  20.  
  21.        The following parameters to pathconf are supported:
  22.  
  23.        Name             Meaning                              Note
  24.        _PC_LAST       max limit # for pathconf          NOT POSIX
  25.        _PC_IOPEN_MAX internal limit on open files      NOT  POSIX
  26.        _PC_LINK_MAX   max  #  of  links                     POSIX
  27.        _PC_PATH_MAX  max len  of  a  full  pathname         POSIX
  28.        _PC_NAME_MAX   max  len  of  individual  name        POSIX
  29.        _PC_PIPE_BUF  bytes  written  atomically  to  fifo   POSIX
  30.        _PC_NO_TRUNC  filename truncation               POSIX
  31.  
  32. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  33.        pathconf  returns  the  current variable value on success.
  34.        On failure, it returns -1 and sets errno to  indicate  the
  35.        error.
  36.  
  37. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  38.        s✓sy✓ys✓sc✓co✓on✓nf✓f(✓(3✓3)✓),✓, D✓Dp✓pa✓at✓th✓hc✓co✓on✓nf✓f(✓(2✓2)✓)
  39.  
  40. N✓NO✓OT✓TE✓E
  41.        It's  a  pity  this routine does not conform to POSIX; but
  42.        then, it's even more a pity that MiNT does not comply...
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.